package novel.manager.pojo.spider;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import org.apache.commons.lang.StringUtils;

/**
 * 章节详细内容实体
 */
@Getter@Setter@AllArgsConstructor@NoArgsConstructor@EqualsAndHashCode
public class ChapterDetail implements Serializable {
	private static final long serialVersionUID = -7303060644500661569L;
	private String title;
	private String content;
	private String prev;
	private String next;
	
	@Override
	public String toString() {
		//StringUtils.abbreviate限制String的最大宽度
		return "ChapterDetail [title=" + title + ", content=" + StringUtils.abbreviate(content, 100) + ", prev=" + prev + ", next=" + next + "]";
	}
}
